package com.wxl.common.room.dao

import androidx.room.*
import com.wxl.common.room.entity.QuestionEntity

@Dao
interface QusetionDao {

    @Delete
    fun deleteUserQuestionEntity(vararg item: QuestionEntity)

    @Update
    fun updateQuestionEntity(vararg item: QuestionEntity)

    @Query("select * from ask")
    fun queryQuestionEntity() : List<QuestionEntity>

    @Query("select * from ask where id in (:id)")
    fun queryQuestionById(id:String) : List<QuestionEntity>

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun insertQuestionEntity(vararg item: QuestionEntity)
}